<template>
    <div class="about">
        <el-row>
            <el-button type="danger" @click="onCnlick" >危险按2121钮</el-button>
            <el-button type="danger" @click="onCnlick1" >危险212按钮1</el-button>
        </el-row>
    </div>
</template>

<style>

</style>
<script setup>
    import {_getTest,_postTest} from '../../api'
    import {reactive} from 'vue'
    import {useRouter} from 'vue-router'
    const data=reactive({

            ueser:{
                pass:33333,
                username:4323423
            }
        }
    )
    const router=useRouter();
    const onCnlick =async () => {
        console.log('llllkl')
        const res = await _getTest()
        const res1 = await _postTest(data.ueser)
        console.log(res)
        console.log(res1)
    }
    const onCnlick1 =async () => {
        console.log('llllkl')
        router.push({ path: '/users/eduardo' })

    }

</script>